public class demo9 {
    public static void main(String[] args) {
        Thread t1=new Thread(()->{
            System.out.println("aaaaa");
        });
        Thread t2=new Thread(()->{
            System.out.println("11111");
        });

        t1.setPriority(2);
        t2.setPriority(Thread.MAX_PRIORITY);

        t1.start();
        t2.start();
    }
}
